<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>


Danh sách các đơn đặt hàng


<table width="95%" style="margin-left: 10px;" cellpadding="0"
	cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
	<thead>
		<tr>
			<th width="10%" scope="col">STT</th>
			<th width="15%" scope="col">Mã đơn đặt hàng</th>
			<th width="15%" scope="col">Công ty</th>
			<th width="15%" scope="col">Ngày đặt</th>
			<th width="15%" scope="col">Ngày nhận</th>
			<th width="15%" scope="col">Trạng thái</th>
			<th scope="col">Xuất kho</th>
		</tr>
	</thead>
	<tbody>
<%int i=0; %>
		<s:iterator value="lstOrder">

			<tr>
				<td>
				<% i++; out.print(i); %>				
				</td>
			

				<!--<td><s:url id="Dealer_viewChiTiet"
     value="/Dealer_viewChiTiet?id=%{dealerID}" /> <sj:a
     title="Thong tin ca nhan" id="lnkDealer_viewChiTiet_%{dealerID}"
     href="%{Dealer_viewChiTiet}" targets="container">
     <s:property value="account.userName" />
    </sj:a></td>
				-->
				
			   <td><s:property value="orderID" /></td>			
				 <!-- <td><s:property value="dealer.companyName" /></td> -->
				<td><s:url id="Order_viewChiTiet"
			     value="/Order_viewChiTiet?id=%{orderID}" /> <sj:a
			     title="Xem chi tiết đơn đặt hàng" 
			     href="%{Order_viewChiTiet}" targets="container">
			     <s:property value="dealer.companyName" />
			    </sj:a></td>
				<td><s:property value="orderDate" /></td>
				<td><s:property value="requireDate" /></td>
				<td><s:property value="statusOfOrder.statusName" /></td>
				<td>
				
				<%int IsXuatKho=-1; %>
				<s:if test="orderInvoice.isWritingExwarehouseVotes==true"> <%IsXuatKho=1; %> </s:if>
				<s:if test="orderInvoice.isWritingExwarehouseVotes==false"> <%IsXuatKho=2; %> </s:if>
						
				<% if(IsXuatKho==1) out.print("Đã xuất");
				   else
				   if(IsXuatKho==2) out.print("Chưa xuất");
				   else out.print("Chưa giải quyết");%>  
				
				<!-- <s:property value="orderInvoice.isWritingExwarehouseVotes" />	 -->				
				</td>
		</s:iterator>


		<tr class="footer">
			<td colspan="2">&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td colspan="3" align="right"><!--  PAGINATION START  -->
			<div class="pagination"><span class="previous-off">&laquo;
			Previous</span> <span class="active">1</span> <a href="#">2</a> <a href="#">3</a>
			<a href="#">4</a> <a href="#">5</a> <a href="#" class="next">Next
			&raquo;</a></div>
			<!--  PAGINATION END  --></td>
		</tr>
	</tbody>
</table>



